# 元组: 不可修改的序列

# 创建元组
a = 1, 2, 3
print(a)
b = (4, 5, 6)
print(b)
# 空元组
print(())

# 一个元素创建元组
a = 1,
print(a)
print((2,))

print(3 * (40 + 2))
print(3 * (40 + 2, ))

print(b[1:])

# 将序列转换成元组
print(tuple([1, 2, 3, 4, 5, 6]))
print(tuple('hello'))

